﻿@{
    ViewBag.Title = "OpenParentCate";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

@model IEnumerable<KRM.Core.KRWSP_getSuperCategoryList_Result>
<div class="container-fluid" style="padding: 10px">
    <form class="margin0" action="/products/OpenParentCate" method="post" id="fr-openparentcate">
        <div class="row-fluid overflow-auto " style="height: 400px">
            <div class="span12">
                  <input type="hidden" name="cateID" value="@ViewBag.cateID" />
                <input type="hidden" name="storeID" value="@ViewBag.storeID" />
                <input type="hidden" name="parentCateID" value="" />
                <table class="table table-bordered table-fix tbl-selected krmtable" >
                    <tbody>
                        @foreach (var item in Model)
                        { 
                            <tr style="cursor: pointer" onclick="CurrentCateParent('@item.CategoryID')">
                                <td>@item.CategoryName</td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
        </div>
        <div class="row-fluid ">
            <div class="span12 text-right" style="padding: 20px 0">
                <input type="submit" name="" class="btn btn-success" value="User Selected" />
                <input type="button" name="" value="Cancel" class="btn btn-danger" onclick="window.close();" />
            </div>
        </div>
    </form>
</div>

